package com.itheima_07;

import com.domain.Student01;

/**
 * @author Xiao
 * @date 2021/7/4
 */
public class StudentTest01 {
    public static void main(String[] args) {
        Student01 stu = new Student01();                            //使用无参构造方法创建对象
        Student01 stu1 = new Student01("平安",20);    //使用有参构造方法创建对象
        stu.setName("阿良");
        stu.setAge(24);
        System.out.println(stu.getName() + ", " + stu.getAge());
        int age = stu.getAge();
        for (int i = 0; i < age; i++) {
            System.out.println("生日快乐！");
        }
        stu.show();
    }
}
